<div class="bjui-pageHeader">
        <form id="pagerForm" data-toggle="ajaxsearch" action="{url}" method="post">
                <input type="hidden" name="pageSize" value="{$numPerPage}" >
                <input type="hidden" name="pageCurrent" value="{$currentPage}">
                <input type="hidden" name="orderField" value="{$orderField}">
                <input type="hidden" name="orderDirection" value="{$orderDirection}">
                <input type="hidden" name="id" value="{$_REQUEST.id|default=''}" />
                <div class="bjui-searchBar">
                        <ul >
                                <li>
                                        <a data-title="添加目的地" href="{:U('System/goal_add')}" class="btn btn-green" data-toggle="dialog" data-mask="true" data-width="650" data-height="400" data-id="dialog-mask">添加</a>
                                        {gt name="pid1" value="0"}
                                        <a href='{:U("System/goal?pid1=".$pid1)}' class="btn btn-blue" data-icon='step-backward' data-toggle="navtab" data-id="System/goal" data-title="目的地管理">返回上一级</a>
                                        {/gt} 
                                </li>
                        </ul>
                </div>
        </form>

</div>
<div class="bjui-pageContent">
        <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
                <thead>
                        <tr>
                                <th width='30' align="center">ID</th>
                                <th>目的地名称</th>
                                <th>重定向字符</th>
                                <th>状态</th>
                                <th width='120'>排序</th>
                                <th width='90'>操作</th>
                        </tr>
                </thead>
                <tbody>
                        {present name="list"}
                        {volist name="list" id="vo"}
                        <tr height="40">
                                <td>{$vo.id}</td>
                                <td><a title="查看下级" href='{:U("System/goal?id=".$vo["id"])}' data-toggle="navtab" data-id="System/goal" data-title="目的地管理">{$vo.name}({$vo.child_num})</a></td>
                                <td>{$vo.write_string}</td>
                                <td>{eq name="vo.status" value="1"}开启{else /}关闭{/eq}</td>
                                <td>{$vo.displayorder}</td>
                                <td>
                                        {gt name="vo.child_num" value="0"}
                                        <a title="查看下级" href='{:U("System/goal?id=".$vo["id"])}' class="btn btn-blue" data-icon='search' data-toggle="navtab" data-id="System/goal" data-title="目的地管理"></a>
                                        {/gt}
                                        <a data-title='编辑目的地' data-icon='edit' href="{:U('System/goal_add?id='.$vo['id'])}" class="btn btn-green" data-toggle="dialog" data-mask="true" data-width="650" data-height="400" data-id="dialog-mask"></a>    
                                        <a data-icon='trash' class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？" href="{:U('System/goal_del?id='.$vo['id'])}"></a></td>
                                </td>
                        </tr>
                        {/volist}
                        {else /}
                        <tr height="40"><td colspan="9" align="center">请使用我们提供的定位功能，快速抓取数据</td></tr>
                        {/present}

                </tbody>
        </table>  

</div>
<div class="bjui-pageFooter">
        <div class="pages">
                <span> 每页&nbsp;</span>
                <div class="selectPagesize">
                        <select data-toggle="selectpicker" data-toggle-change="changepagesize" class="show-tick" >
                                <option {eq name="numPerPage" value="20"} selected="selected" {/eq} value="20">20</option>
                                <option {eq name='numPerPage' value='40'} selected="selected" {/eq} value="40">40</option>
                                <option {eq name='numPerPage' value='120'} selected="selected" {/eq} value="120">120</option>
                                <option {eq name='numPerPage' value='150'} selected="selected" {/eq} value="150">150</option>
                        </select>
                </div>
                <span>&nbsp;条,共 {$totalCount} 条 </span>


        </div>
        <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
        </div>
</div>


